/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.gamecenter.sdk.support.systemmessage.a;

import android.content.Context;
import android.text.TextUtils;
import com.qihoo.gamecenter.sdk.common.h.d;
import com.qihoo.gamecenter.sdk.common.h.d.a;
import com.qihoo.gamecenter.sdk.common.i.s;
import com.qihoo.gamecenter.sdk.support.g.a;
import java.util.Map;
import java.util.TreeMap;
import org.json.JSONObject;

public class c extends d {
    public c(Context paramContext, d.a parama) {
        super(paramContext, parama, false);
    }

    protected String a(Context paramContext, String[] paramArrayOfString) {
        String str1 = a(0, paramArrayOfString);
        String str2 = a(1, paramArrayOfString);
        if ((TextUtils.isEmpty(str1)) || (TextUtils.isEmpty(str2)))
            return null;
        TreeMap localTreeMap = new TreeMap();
        localTreeMap.put("app_key", s.r(paramContext));
        localTreeMap.put("user_id", str1);
        localTreeMap.put("msg_ids", str2);
        String str3 = "http://msg.mgame.360.cn/msg/mark.json?" + s.a(localTreeMap, s.s(paramContext));
        a.a("SetSysMsgReaded2SvrTask", new Object[] { "req url = " + str3 });
        return str3;
    }

    protected String a() {
        return null;
    }

    protected Map b(Context paramContext, String[] paramArrayOfString) {
        return null;
    }

    protected a b(JSONObject paramJSONObject) {
        if (paramJSONObject != null) {
            a locala = new a();
            a.a(locala, paramJSONObject.optInt("error_code", -1));
            a.a(locala, paramJSONObject.optString("error"));
            return locala;
        }
        return null;
    }

    public class a {
        private int b = -1;
        private String c;

        public int a() {
            return this.b;
        }
    }
}